<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
</head>

<body>
    {# 显示 Flash Message #}
    {% for msg in get_flashed_messages() %}
    <div style="color: red;" >{{ msg }}</div>
    {% endfor %}

    {% if session.filenames %}
    {% for filename in session.filenames %}
    <a href="{{ url_for('get_file', filename=filename) }}" target="_blank">
        <img src="{{ url_for('get_file', filename=filename) }}" width="300">
    </a>
    {% endfor %}
    {% endif %}
</body>

</html>